package com.ruoyi.cm.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotNull;

/**
 * 中间计量对象 cm_period_measurement
 *
 * @author zxs
 * @date 2024-09-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("cm_period_measurement")
public class CmPeriodMeasurement extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 期数id
     */
    private Long qsId;
    /**
     * 计量数量
     */
    private BigDecimal measurementQuantity;
    /**
     * 合价
     */
    private BigDecimal totalPrice;
    /**
     * 剩余数量
     */
    private BigDecimal remainingQuantity;
    //数量
    private BigDecimal initRongliang;
    //报税总价
    @TableField(exist = false)
    private BigDecimal initZongjia;
    /**
     * 标段id
     */
    private Long bdId;
    /**
     * 站点id
     */
    private Long zdId;
    /**
     * 附件id(逗号拼接)
     */
    private String fileNo;
    /**
     * 合同清单id
     */
    private Long contractListId;
    /**
     * 期数
     */
    private Integer qs;
    /**
     * 备注
     */
    private String remark;
    /**
     * 是否删除
     */
    @TableLogic
    private String delFlag;

    //本期计量金额(每站点当期计量金额合价)
    private BigDecimal benqjlje;
    //累计计量金额(已计量期数的本期计量金额合计)
    private BigDecimal leijjlje;
    //本期支付金额(本期计量金额-扣回开工预付金额+奖罚金)
    private BigDecimal benqzfje;
    //累计支付金额(开工预付款-奖励基金+已计量期数的本期支付金额合计)
    private BigDecimal leijzfje;
    // 变更数量
    private BigDecimal chgRongliang;
    // 变更后合计
    private BigDecimal chgZongjia;
}
